import de.fhpotsdam.unfolding.Map;
import de.fhpotsdam.unfolding.geo.Location;
import de.fhpotsdam.unfolding.utils.MapUtils;

public class UnfoldingMap {

	// Connection to SQLite/MBTiles in development environment (link to the project)
	public static final String JDBC_CONN_STRING = "jdbc:sqlite:../data/muse-dark-2-8.mbtiles";
	
	Map map;
	
	public UnfoldingMap() {
		map = new Map(GLOBAL.processing, "map", 0, 100, 1024, 580);
		map.zoomAndPanTo(new Location(36f,-95f), 4);
		MapUtils.createDefaultEventDispatcher(GLOBAL.processing, map);
	}

	public void draw() {
		map.draw();
		map.setZoomRange(3, 100);
	}	
	
	public void pause() {
		map.setActive(false);
	}
	
	public void play() {
		map.setActive(true);
	}
	
}
